package com.hgyc.mom.wms.enums;

/**
 * 来料入库状态字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-09-25 11:54:16
 * @version 1.0
 **/
public enum PurchaseReceiptStatusEnum {
    CREATED("created", "创建"),
    RECEIVING("receiving", "收料中"),
    COMPLETED("completed", "已完成"),
    RETURNED("returned", "已退货"),
    CLOSED("closed", "关闭")
    ;

    private final String value;
    private final String label;

    PurchaseReceiptStatusEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static PurchaseReceiptStatusEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (PurchaseReceiptStatusEnum item : PurchaseReceiptStatusEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

